package org.csu.petstore_manage.domain;

import org.csu.petstore_manage.service.CatalogService;

import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.util.List;

public class Product implements Serializable{

  private String productId;
  private String categoryId;
  private String name;
  private String description;
  private String descriptionImage;
  private String descriptionText;

 // private CatalogService catalogService;


  public String getProductId() {
    return productId;
  }

  public void setProductId(String productId) {
    this.productId = productId;
  }

  public String getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(String categoryId) {
    this.categoryId = categoryId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getDescriptionImage() {
    return descriptionImage;
  }

  public void setDescriptionImage(String descriptionImage) {
    this.descriptionImage = descriptionImage;
  }

  public String getDescriptionText() {
    return descriptionText;
  }

  public void setDescriptionText(String descriptionText) {
    this.descriptionText = descriptionText;
  }

 // public List<Item> getItemListByProduct()
  //{  List<Item> items = catalogService.getItemListByProduct(productId);
  //return items;}

  @Override
  public String toString(){
    return "Product [productId=" + productId + ", categoryId=" + categoryId + ", name=" + name + ", description=" + description + "]";
  }

};
